package com.nodecollege.cloud.dao.mapper;

import com.nodecollege.cloud.common.model.po.UpmsUserInvitation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 版权：节点学院
 * <p>
 * UpmsUserInvitationMapper
 *
 * @author LC
 * @date 2019-12-12 15:56:48
 */
@Mapper
@Component
public interface UpmsUserInvitationMapper {
    /**
     * 根据主键删除数据
     *
     * @param id Integer
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 插入数据库记录（建议使用）
     *
     * @param record UpmsUserInvitation
     * @return int
     */
    int insertSelective(UpmsUserInvitation record);

    /**
     * 根据主键id查询
     *
     * @param id Integer
     * @return UpmsUserInvitation
     */
    UpmsUserInvitation selectByPrimaryKey(Long id);

    /**
     * 修改数据(推荐使用)
     *
     * @param record UpmsUserInvitation
     * @return int
     */
    int updateByPrimaryKeySelective(UpmsUserInvitation record);

    /**
     * 查询用户邀请列表
     *
     * @param queryMap
     */
    List<UpmsUserInvitation> selectListByMap(Map<String, Object> queryMap);
}